<?php


# Created on: 2011-12-10 23:36:20 616

/**
* Details of an entry in [ sizes ]
*/

$size_id = $variable->get('id', 'integer', 0); # Entity ID
$code = $variable->get('code', 'string', ''); # Protection Code

if(!$size_id)
{
	# Page was loaded without the ID parementer
	stopper::url('sizes-direct-access-error.php?context=identity');
}
else
{
	$sizes = new sizes();
	
	# Try to load the details
	if($sizes_details = $sizes->details($size_id, $code))
	{
		# We aim to reach here only.
		$smarty->assignByRef('sizes', $sizes_details);
	}
	else
	{
		# Record not found
		stopper::url('sizes-direct-access-error.php?context=data');
	}
}
?>